import arrowPng from '../assets/arrows'
import linesPng from '../assets/lines'

export const edgeArrowTypes = [
  { type: 'classic', src: arrowPng.classicPng },
  { type: 'none', src: arrowPng.linePng },
  { type: 'block', src: arrowPng.blockPng },
  // { type: 'diamond', src: arrowPng.diamondPng },
  // { type: 'circle', src: arrowPng.circlePng },
  // { type: 'circlePlus', src: arrowPng.circlePlusPng },
  // { type: 'cross', src: arrowPng.crossPng },
  // { type: 'ellipse', src: arrowPng.ellipsePng },
  { type: 'async', src: arrowPng.asyncPng }
]

export const doubleEdgeArrowTypes = [
  { type: 'default', src: arrowPng.emptyArrowPng },
  { type: 'none', src: arrowPng.doubleLinePng }
]

export const lineTypeList = [
  { type: 'edge,0', src: linesPng.line },
  // { type: 'edge,1', src: linesPng.dashed1 },
  { type: 'edge,2', src: linesPng.dashed2 },
  // { type: 'edge,3', src: linesPng.dashed3 },
  { type: 'edge,4', src: linesPng.dashed4 },
  // { type: 'edge,5', src: linesPng.dashed5 },
  { type: 'edge,6', src: linesPng.dashed6 },
  { type: 'double-edge,0', src: linesPng.doubleLine },
  { type: 'double-edge,2', src: linesPng.doubleDashed2 },
  { type: 'double-edge,4', src: linesPng.doubleDashed4 },
  { type: 'double-edge,6', src: linesPng.doubleDashed6 }
]

export const routerOptions = [
  {
    value: 'normal',
    label: '默认路由'
  },
  {
    value: 'orth',
    label: '正交路由'
  },
  {
    value: 'oneSide',
    label: '受限正交路由'
  },
  {
    value: 'manhattan',
    label: '智能正交路由'
  },
  {
    value: 'metro',
    label: '智能地铁线路由'
  },
  {
    value: 'er',
    label: '实体关系路由'
  }
]

export const connectorOptions = [
  {
    value: 'normal',
    label: '简单连接'
  },
  {
    value: 'smooth',
    label: '平滑连接'
  },
  {
    value: 'rounded',
    label: '圆角连接'
  },
  {
    value: 'jumpover',
    label: '跳线连接'
  }
]
